/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/11/2010                        
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define CategoryResult object. This object used to contain data that returned from data layer.
    /// </summary>
    public class CategoryResult
    {
        #region fields
        private string categoryId;
        private string categoryName;
        private string description;
        private string createdBy;
        private DateTime createdDate;
        private string lastUpdatedBy;
        private DateTime lastUpdatedDate;
        private Boolean isPublished;
        #endregion fields

        #region properties
        /// <summary>
        /// Define CategoryId Property.
        /// </summary>
        public string CategoryId
        {
            get { return this.categoryId; }
            set { this.categoryId = value; }
        }
        /// <summary>
        /// Define CategoryName Property.
        /// </summary>
        public string CategoryName
        {
            get { return this.categoryName; }
            set { this.categoryName = value; }
        }
        /// <summary>
        /// Define Description Property.
        /// </summary>
        public string Description
        {
            get { return this.description; }
            set { this.description = value; }
        }
        /// <summary>
        /// Define CreatedBy Property.
        /// </summary>
        public string CreatedBy
        {
            get { return this.createdBy; }
            set { this.createdBy = value; }
        }
        /// <summary>
        /// Define CreatedDate Property.
        /// </summary>
        public DateTime CreatedDate
        {
            get { return this.createdDate; }
            set { this.createdDate = value; }
        }
        /// <summary>
        /// Define LastUpdatedBy Property.
        /// </summary>
        public string LastUpdatedBy
        {
            get { return this.lastUpdatedBy; }
            set { this.lastUpdatedBy = value; }
        }
        /// <summary>
        /// Define LastUpdatedDate Property.
        /// </summary>
        public DateTime LastUpdatedDate
        {
            get { return this.lastUpdatedDate; }
            set { this.lastUpdatedDate = value; }
        }
        /// <summary>
        /// Define IsPublished Property.
        /// </summary>
        public Boolean IsPublished
        {
            get { return this.isPublished; }
            set { this.isPublished = value; }
        }
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for CategoryResultResult Object.
        /// </summary>
        public CategoryResult()
        {
            this.categoryId = string.Empty;
            this.categoryName = string.Empty;
            this.description = string.Empty;
            this.createdBy = string.Empty;
            this.createdDate = DateTime.MinValue;
            this.lastUpdatedBy = string.Empty;
            this.lastUpdatedDate = DateTime.MinValue;
            this.isPublished = true;
        }
        /// <summary>
        /// Define constructor for CategoryResultResult Object.
        /// </summary>
        public CategoryResult(string categoryId,
                    string categoryName,
                    string description,
                    string createdBy,
                    DateTime createdDate,
                    string lastUpdatedBy,
                    DateTime lastUpdatedDate,
                    Boolean isPublished)
        {
            this.categoryId = categoryId;
            this.categoryName = categoryName;
            this.description = description;
            this.createdBy = createdBy;
            this.createdDate = createdDate;
            this.lastUpdatedBy = lastUpdatedBy;
            this.lastUpdatedDate = lastUpdatedDate;
            this.isPublished = isPublished;
        }
        #endregion constructor
    }
}